import request from '@/utils/request'

// 查询打印价格模板列表
export function listMode(query) {
  return request({
    url: '/prt/pricemode/list',
    method: 'get',
    params: query
  })
}

// 查询打印价格模板详细
export function getMode(priceModeId) {
  return request({
    url: '/prt/pricemode/' + priceModeId,
    method: 'get'
  })
}

// 新增打印价格模板
export function addMode(data) {
  return request({
    url: '/prt/pricemode',
    method: 'post',
    data: data
  })
}

// 修改打印价格模板
export function updateMode(data) {
  return request({
    url: '/prt/pricemode',
    method: 'put',
    data: data
  })
}

// 删除打印价格模板
export function delMode(priceModeId) {
  return request({
    url: '/prt/pricemode/' + priceModeId,
    method: 'delete'
  })
}

// 导出打印价格模板
export function exportMode(query) {
  return request({
    url: '/prt/pricemode/export',
    method: 'get',
    params: query
  })
}